package com.shanhesoft.java.common.ws;

import com.shanhesoft.java.common.core.constant.CommonConstants;
import com.shanhesoft.java.common.core.util.Result;
import com.shanhesoft.java.common.core.util.StringUtil;
import com.shanhesoft.java.common.rancher.type.Container;
import com.shanhesoft.java.modules.exam.domain.VirtualTrainingDetailInstance;
import com.shanhesoft.java.modules.exam.service.VirtualTrainingDetailInstanceService;
import com.shanhesoft.java.modules.exam.service.impl.RancherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@EnableScheduling   // 1.开启定时任务
@EnableAsync        // 2.开启多线程
public class ClearLostMsgScheduleTask {

	@Async
    @Scheduled(cron = "0 0 5 * * ?")
	public void clearLostMsg() {
		SubmissionWebSocketServer.LOST_MSG.clear();
	}
}
